<!DOCTYPE html>
<html lang="en">
<head>
<title>权限功能菜单设置</title>
#@common()
<style type="text/css">
body { padding: 0 10px 10px 10px; background: #fff; }
.layui-form-label { min-width: 200px; }
</style>
</head>
<body>
	<div class="layui-tab layui-tab-brief" lay-filter="func">
		<ul class="layui-tab-title">
			#for(func : funcs)
	    	<li #if(for.first)class="layui-this"#end lay-type="#(func.data)">#(func.name)</li>
	    	#end
	  	</ul>
	  	<div class="layui-tab-content">
	  		<iframe marginheight="0" marginwidth="0" frameborder="0" width="100%" id="content" class="layui-tab-item layui-show" src="admin/option/func?type=#(defType)&optionId=#(optionId)"></iframe>
	  	</div>
	</div>   
	<script>
		layui.use('element', function() {
			var element = layui.element;
			$('#content').height($(window).height() - $('.layui-tab-title').height() - 55)
			element.on('tab(func)', function(){
				var type = this.getAttribute('lay-type');
				//layer.msg(id);
				$('#content').attr('src', 'admin/option/func?type='+type+'&optionId=#(optionId)');
			});
			
		});
	</script>
</body>
</html>